package com.atguigu.eduservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author: He Wentao
 * @date: 2022/8/13 15:35
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.atguigu"})
@EnableTransactionManagement // 事务注解
@EnableDiscoveryClient  //nacos服务发现注解
@EnableFeignClients(basePackages = {"com.atguigu.eduservice.service.client"}) // 开启OpenFeign功能，并设置接口扫描
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }

}
